<include file="App/Home/View/default/Public/header.html"/>
  <link href="__PUBLIC__/css/drawer-list.css" rel="stylesheet" media="screen">
	   <div id="content">
        <div class="container">
          <div class="row">
            <div class="col-md-12">
              <div class="article">
                <div class="doulist-hd">
                  <h1 class="doulist-title">{$drawer_info.title}</h1>
                  <div class="doulist-action">
                    <span class="btn-sub-doulist J_SubscribeDoulist"><i class="fa fa-star-o"></i>关注抽屉</span>
                    <div class="sns-social btn-customer">
                      <span class="btn-normal btn-social-rec">分享</span>
                    </div>
                  </div>
                  <div class="doulist-desc-wrap empty">
                    <div class="doulist-desc-hd clearfix">
                      <div class="doulist-author">
                              <a href="__ROOT__/wower/{$drawer_user_info.id|think_encrypt}" title="{$drawer_user_info.user_name}" target="_blank">
                                  <img class="avatar" width="30" height="30" alt="{$drawer_user_info.user_name}" src="__PUBLIC__/Uploads/{$drawer_user_info.avatar|default="default_avatar.jpg"}">
                                  <span>{$drawer_user_info.user_name}</span>
                              </a>
                              <span class="text">的抽屉</span>
                          </div>
                          <div class="doulist-stats">
                              <span>{$drawer_info.goods_count} 好礼</span>
                              <span>{$drawer_info.follow_count} 关注</span>
                              <span>{$drawer_info.recomment_cound} 推荐</span>
                          </div>
                    </div>
                    <div class="doulist-desc-bd">
                      <div class="doulist-desc">
                            {$drawer_info.intro|default="Ta 很懒，还没有添加抽屉说明"}            
                       </div>
                    </div>
                  </div>
                </div>
                <!--内容正式开始-->
                <div class="row food_con" id="drawer-item-list">
                <foreach name="drawer_goods_list" item="goods">
                  <?php
                    $path = "Public/Uploads/";
                    list($width, $height) = getimagesize($path.$goods['cover']);
                    if ($height > 203) {
                      $gap = $height - 203;
                      $style = 'margin-top:'.(-$gap/2)."px";
                    }
                  ?>
                  <div class="col-md-4 J_ItemWrap">
                    <div class="card-item J_GoodsWrap">
                      <div class="card-main">
                        <div class="card-hd">
                          <div class="img J_GoodsCover">
                              <!-- <span class="price-icon free">
                                免费
                              </span> -->
                              <a href="{:U('goods/'.$goods['id'])}">
                                <img class="img-responsive J_GoodsPic" src="__PUBLIC__/Uploads/{$goods.cover}" style="<?php echo $style;?>">
                              </a>
                            </div>
                            <span class="commodity-price">￥{$goods.cost_price}</span>
                        </div>
                        <div class="card-bd">
                          <h2 class="story-title" title="{$goods.title}">
                              <a target="_blank" href="{:U('goods/'.$goods['id'])}">{$goods.title}</a>
                          </h2>
                          <div class="author-box">
                            <a class="author-avatar-link" href="{:U('wower/'.think_encrypt($goods['post_uid']))}">
                                <img width="24" height="24" src="__PUBLIC__/Uploads/{$goods.post_user_avatar|default='default_avatar.jpg'}" alt="{$goods.post_user_name}" title="{$goods.post_user_name}">
                            </a>
                            <a href="{:U('wower/'.think_encrypt($goods['post_uid']))}">{$goods.post_user_name}</a>&nbsp;发布
                          </div>
                          <div class="story-quote">
                              <q class="quote">{$goods.why_recommend|default='Ta很懒，还没有写推荐理由'}</q>
                          </div>
                          <div class="story-info" data-eqid="3878709">
                              <ul class="stats-list">
                                  <li class="doulist-count">加入抽屉&nbsp;{$goods.add2drawer_count}</li>
                                  <li class="like">喜欢&nbsp;{$goods.like_count}</li>
                                  <li class="post">评论&nbsp;{$goods.commnet_count}</li>
                              </ul>
                          </div>
                        </div>    
                      </div>
                      <div class="card-extra">
                        <div class="card-actions" style="display: none;" data-id="{$goods.id}">
                            <a href="#add_drawer" data-toggle="modal" class="btn-doulist J_AddToDrawer">
                                加入抽屉
                                <em class="count">105</em>
                            </a>
                            <a class="btn-carditem-like J_AddLike" href="javascript:;">
                                <i class="main fa fa-heart"></i>
                                <em class="count">140</em>
                            </a>
                        </div>
                        <div class="card-drawer">
                            <div class="card-remark">
                                备注: 好喜欢！
                            </div>
                            <div class="card-knob js-draw-remark">
                                <i class="fa fa-angle-double-down"></i>
                            </div>
                        </div>
                      </div>
                                      
                    </div>
                  </div>
                  </foreach>
                <!-- div class="col-md-4">
                        <div class="card-item">
                          <div class="card-main">
                            <div class="card-hd">
                              <div class="img">
                                  <a href="/classroom/1?static=home-classroom-recommend">
                                    <img class="img-responsive" src="__PUBLIC__/images/content_1.jpg">
                                  </a>
                                </div>
                                <span class="commodity-price">￥18.00</span>
                            </div>
                            <div class="card-bd">
                              <h2 class="story-title" title="JOINFIT乳胶圈能量圈田径训练器材拉力圈抗阻力瘦腿弹力带康复">
                                  <a target="_blank" href="http://dongxi.douban.com/show/3912460/">JOINFIT乳胶圈能量圈田径训练器材拉力圈抗阻力瘦腿弹力带康复</a>
                              </h2>
                              <div class="author-box">
                                <a class="author-avatar-link" href="http://dongxi.douban.com/people/hmily-15/">
                                    <img width="24" height="24" src="__PUBLIC__/images/avatar_5.jpg" alt="希天才" title="希天才">
                                </a>
                                <a href="http://dongxi.douban.com/people/hmily-15/">希天才</a>&nbsp;发布
                              </div>
                              <div class="story-quote">
                                  <q class="quote">【★★★★】日本药妆店入手。870日元，40多人民币。便宜啊！200G呢！本来就是无聊试用...</q>
                              </div>
                              <div class="story-info" data-eqid="3878709">
                                  <ul class="stats-list">
                                      <li class="doulist-count">加入豆列&nbsp;2</li>
                                      <li class="like">喜欢&nbsp;1</li>
                                      <li class="post">评论&nbsp;1</li>
                                  </ul>
                              </div>
                            </div>    
                          </div>          
                        </div>
                      </div> -->
                  <!-- <div class="col-md-4">
                        <div class="card-item">
                          <div class="card-main">
                            <div class="card-hd">
                              <div class="img">
                                  <a href="/classroom/1?static=home-classroom-recommend">
                                    <img class="img-responsive" src="__PUBLIC__/images/content_1.jpg">
                                  </a>
                                </div>
                                <span class="commodity-price">￥18.00</span>
                            </div>
                            <div class="card-bd">
                              <h2 class="story-title" title="JOINFIT乳胶圈能量圈田径训练器材拉力圈抗阻力瘦腿弹力带康复">
                                  <a target="_blank" href="http://dongxi.douban.com/show/3912460/">JOINFIT乳胶圈能量圈田径训练器材拉力圈抗阻力瘦腿弹力带康复</a>
                              </h2>
                              <div class="author-box">
                                <a class="author-avatar-link" href="http://dongxi.douban.com/people/hmily-15/">
                                    <img width="24" height="24" src="__PUBLIC__/images/avatar_5.jpg" alt="希天才" title="希天才">
                                </a>
                                <a href="http://dongxi.douban.com/people/hmily-15/">希天才</a>&nbsp;发布
                              </div>
                              <div class="story-quote">
                                  <q class="quote">【★★★★】日本药妆店入手。870日元，40多人民币。便宜啊！200G呢！本来就是无聊试用...</q>
                              </div>
                              <div class="story-info" data-eqid="3878709">
                                  <ul class="stats-list">
                                      <li class="doulist-count">加入豆列&nbsp;2</li>
                                      <li class="like">喜欢&nbsp;1</li>
                                      <li class="post">评论&nbsp;1</li>
                                  </ul>
                              </div>
                            </div>    
                          </div>          
                        </div>
                      </div> -->
                </div>
                <!--内容正式结束-->
              </div>
            </div>
          </div>
        </div>
      </div>
<include file="App/Home/View/default/Public/footer.html"/>